<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <a v-bind:href="hrefUrl">链接1</a>
    <a :href="hrefUrl">链接2</a>
    <!-- 注意动态参数建议用全小写，浏览器会将该属性大写转成小写-->
    <a :[attrkey]="hrefUrl">链接3</a>
</div>
<script>
    const vueOpt = {
        data(){
            return {
                attrkey: 'href',
                hrefUrl: "https://www.baidu.com",
            }
        }
    }

    Vue.createApp(vueOpt).mount('#app')
</script>
</body>
</html>
